/**
 * 
 */
package com.witframework.baseapp.security;

import java.util.HashSet;
import java.util.Set;

import org.javalid.annotations.validation.MaxLength;
import org.javalid.annotations.validation.NotEmpty;

import com.witframework.core.BaseEntity;
import com.witframework.core.annotations.Wit;

/**
 * @author wuxinyang Jun 18, 2009 11:13:59 AM
 */

@Wit(cnname = "角色", cnproperty = "name")
public class Role extends BaseEntity{	
	
	@MaxLength(length  = 60)@NotEmpty
	private String name;

	private String description;	
	@MaxLength(length = 60)@NotEmpty
	private String userlevel;		
	@MaxLength(length = 2000)
	private String orglist;	
	private Set userRoleses=new HashSet(0);	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getUserlevel() {
		return userlevel;
	}
	public void setUserlevel(String userlevel) {
		this.userlevel = userlevel;
	}
	
	public String getOrglist() {
		return orglist;
	}
	public void setOrglist(String orglist) {
		this.orglist = orglist;
	}
	public Set getUserRoleses() {
		return userRoleses;
	}
	public void setUserRoleses(Set userRoleses) {
		this.userRoleses = userRoleses;
	}	
}
